package com.iticit.constant;

import java.io.File;
import java.util.Arrays;

/**
 * @description 
 * <p>全局常量配置</p>
 * @author chenchengdong-yfzx
 * @date 2019年12月11日
 */
public class WholeConstants {

	/**
	 * @description 
	 * <p>通用信息类</p>
	 * @author chenchengdong-yfzx
	 * @date 2019年12月11日
	 */
	public final static class CommonMsg {
		public static final CodeConstant VALID = new CodeConstant("1", "有效");
		public static final CodeConstant INVALID = new CodeConstant("0", "无效");
	}
	
	/**
	 * @description 
	 * <p>与金融开放平台交互信息</p>
	 * @author chenchengdong-yfzx
	 * @date 2019年12月11日
	 */
	public final static class CopsMsg {
		public static final CodeConstant VERIFY_SIGN_NOT_PASS = new CodeConstant("0", "验签不通过");
		public static final CodeConstant VERIFY_SIGN_PASS = new CodeConstant("1", "验签通过");
		public static final CodeConstant SIGN_FAIL = new CodeConstant("0", "加签失败");
		public static final CodeConstant SIGN_SUCCESS = new CodeConstant("1", "加签成功");
		public static final CodeConstant ENCRYPT_FAIL = new CodeConstant("0", "加密失败");
		public static final CodeConstant ENCRYPT_SUCCESS = new CodeConstant("1", "加密成功");
		public static final CodeConstant DENCRYPT_FAIL = new CodeConstant("0", "解密失败");
		public static final CodeConstant DENCRYPT_SUCCESS = new CodeConstant("1", "解密成功");
		
		public static final CodeConstant CODE_PRE_ORDER = new CodeConstant("CODE_PRE_ORDER", "统一预下单接口");
		public static final CodeConstant BE_SCANNED = new CodeConstant("BE_SCANNED", "付款码支付接口");
		public static final CodeConstant CLOSE_ORDER = new CodeConstant("CLOSE_ORDER", "订单关闭接口");
		public static final CodeConstant ALI_OFFICIAL_ACCOUNT = new CodeConstant("ALI_OFFICIAL_ACCOUNT", "支付宝服务窗预下单接口");
		public static final CodeConstant OPEN_ID_FETCH = new CodeConstant("OPEN_ID_FETCH", "OPENID获取接口");
		public static final CodeConstant PAY_ORDER_NOTIFY = new CodeConstant("PAY_ORDER_NOTIFY", "支付通知推送接口");
		public static final CodeConstant PAY_ORDER_QUERY = new CodeConstant("PAY_ORDER_QUERY", "支付订单查询接口");
		public static final CodeConstant REFUND = new CodeConstant("REFUND", "退款接口");
		public static final CodeConstant REFUND_QUERY = new CodeConstant("REFUND_QUERY", "退款订单查询接口");
		public static final CodeConstant WX_MINI_PRO = new CodeConstant("WX_MINI_PRO", "微信小程序/公众号预下单接口");
	}
	
	public static void main(String[] args) {
		try{
			File file = new File("E:\\dd\\lib");
			StringBuffer stringBuffer = new StringBuffer();
			if(file.isDirectory()) {
				File[] files = file.listFiles();
				Arrays.stream(files).forEach(e -> {
					stringBuffer.append("lib/"+e.getName()).append(" ");
				});
			}
			System.out.println(stringBuffer.toString());
		} catch(Exception e) {
			
		}
	}
}
